Skip to content

docs: limit iterations in consensus_tree() example for fast execution#2560

Merged
krlmlr merged 2 commits intoconsensus-treefrom
copilot/sub-pr-1453
Apr 12, 2026
Merged

docs: limit iterations in consensus_tree() example for fast execution#2560
krlmlr merged 2 commits intoconsensus-treefrom
copilot/sub-pr-1453

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 27, 2026

The consensus_tree() example used the default num.samples = 10000, causing slow execution during R CMD check (~several seconds).

Changes:

  • Set num.samples = 100 in the example
  • Example now runs in ~0.2 seconds (verified under 1 second requirement)
  • Regenerated documentation with devtools::document()
## The consensus tree for it
consensus_tree(g, hrg = hrg, start = TRUE, num.samples = 100)

  • By submitting this pull request, I assign the copyright of my contribution to The igraph development team.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: krlmlr <1741643+krlmlr@users.noreply.github.com>
Copilot AI changed the title [WIP] Add example for consensus_tree from fit_hrg example docs: limit iterations in consensus_tree() example for fast execution Jan 27, 2026
Copilot AI requested a review from krlmlr January 27, 2026 08:10
@krlmlr krlmlr marked this pull request as ready for review April 12, 2026 17:45
@krlmlr krlmlr merged commit 9269cd1 into consensus-tree Apr 12, 2026
1 check passed
@krlmlr krlmlr deleted the copilot/sub-pr-1453 branch April 12, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants